package de.jmda.mview.proj;

import static org.junit.Assert.assertNotNull;

import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class JUTProjectModelRepositoryStore
{
	@BeforeClass
	public static void beforeClass()
	{
//		Locale.setDefault(Locale.ENGLISH);
	}
	
	/**
	 * Stores a default project model repository in the file system to make it
	 * available for the tests.
	 */
	@Before
	public void before()
	{
		ProjectModelRepositoryStore.store();
	}

	@Test
	public void loadDefault()
	{
		ProjectModelRepository projectModelRepository =
				ProjectModelRepositoryStore.load();
		
		assertNotNull("failure loading default repository", projectModelRepository);
	}
}